package com.tac.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@ApiModel
public class OrderProduct {
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("订单id")
    private Integer orderId;
    @ApiModelProperty("商品id")
    private Integer productId;
    @ApiModelProperty("商品名称")
    private String productName;
    @ApiModelProperty("商品图片")
    private String productImg;
    @ApiModelProperty("单价")
    private BigDecimal price;
    @ApiModelProperty("总价")
    private BigDecimal totalPrice;
    @ApiModelProperty("数量")
    private Integer quantity;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    private Integer status;
}
